<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<link rel="stylesheet" href="../style/journal.css" type="text/css" />
<style type="text/css"><!--
.googleadsense {
	margin: 2px;
	padding: 0px;
//--></style><script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-65008-1";
urchinTracker();
</script><title>关于怎么创建新模块简单的纪录</title>
</head>
<body>
<a href="index.html">Journal</a>(2005) | <a href="../blog/"><b>Blog</b></a>(2006) | <a href="http://www.fayland.org/cgi-bin/random_link.pl">RandomLink</a> | <a href="AboutFayland.html">WhoAmI</a> | <a href="LiveBookmark.html">LiveBookmark</a> | <a href="http://www.fayland.org/">HomePage</a>
<p><&lt;Previous: <a href="modperl_helloworld.html">modperl Apache2::HelloWorld</a>&nbsp;&nbsp;>>Next: <a href="Cantonese.html">Lingua::Han::Cantonese for 广东话</a></p>
<h1>关于怎么创建新模块简单的纪录</h1>
<div class='content'>
<p>Category: <a href='Modules.html'>Modules</a> &nbsp; Keywords: <b>module starter</b></p>以下只是简单的纪录。详细的怎么弄有空会写。<p /><pre>module-starter --module=Lingua::Han::Cantonese --author="Fayland Lam" --email=fayland@gmail.com --mb<br />cd Lingua-Han-Cantonese<br /># 写代码和测试文件<br />prove -l t/*<br />perl Build.pl<br />perl Build<br /># 删除 MANIFEST<br />perl Build manifest<br />perl Build dist<br />perl Build realclean<br /></pre><h3>tips</h3><ul><li>如果 lib 目录下有不是 pm 文件而是什么 data 文件的话，比如 Cantonese.dat, <a href="http://search.cpan.org/perldoc?Module::Build">Module::Build</a> 默认不会包括。你可以这么在 Build.PL 里加进这句：<br /><pre>$builder->add_build_element('dat');</pre></ul></div>
<p><&lt;Previous: <a href="modperl_helloworld.html">modperl Apache2::HelloWorld</a>&nbsp;&nbsp;>>Next: <a href="Cantonese.html">Lingua::Han::Cantonese for 广东话</a></p>
<p><strong>Options:</strong> <a href='http://del.icio.us/post?title=%E5%85%B3%E4%BA%8E%E6%80%8E%E4%B9%88%E5%88%9B%E5%BB%BA%E6%96%B0%E6%A8%A1%E5%9D%97%E7%AE%80%E5%8D%95%E7%9A%84%E7%BA%AA%E5%BD%95&url=http://www.fayland.org/journal/Notes_on_Creating_Module.html'>+Del.icio.us</a></p>
<strong>Related items</strong>
<ul><li><a href='Module.html'>Module</a> < <span class='digit'>2004-10-30 19:10:08</span> ></li><li><a href='Module_Build.html'>用Module::Build制作CPAN模块包</a> < <span class='digit'>2004-12-16 18:59:50</span> ></li><li><a href='UploadModule.html'>如何向CPAN上传模块</a> < <span class='digit'>2004-12-16 19:27:09</span> ></li><li><a href='Synopsis11.html'>纲要十一：模块</a> < <span class='digit'>2005-03-14 15:32:36</span> ></li></ul>
Created on <span class="digit">2005-11-17 23:06:03</span>, Last modified on <span class="digit">2005-11-25 11:45:36</span><br />
Copyright 2004-2005 All Rights Reserved. Powered by <a href="Eplanet.html">Eplanet</a> && <a href='http://catalyst.perl.org'>Catalyst</a> 5.62.
</body>
</html>